<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>${map.bussName}</title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta content="telephone=no" name="format-detection"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta http-equiv="X-UA-Compatible" content="IE=9"/>
    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="${path}/static/taoshunda/share/js/jquery.SuperSlide.2.1.1.js"></script>
    <link rel="stylesheet" type="text/css" href="${path}/static/taoshunda/share/css/common.css" />
    <style type="text/css">
        body{
            background: #f0eff7;
        }
    </style>
</head>
<body>
<div class="public-background public-overflow" style="padding-top:20px;padding-bottom:20px;">
    <div class="public-padding">

        <div style="overflow: hidden;">
            <div style="width:15%;" class="public-left">
                <img src="http://www.taoshunda.com/images/${map.bussLogo}" width="50" height="50" alt=""
                     style="border-radius: 1000px;"/>
            </div>
            <div style="width: 85%;" class="public-right">
                <div style="line-height: 50px;font-size:16px;padding-left:10px;">
                    ${map.goodsNumber}件商品<span style="padding-left: 5px;padding-right:5px;">|</span>月售${map.orderCount}单
                </div>
            </div>
        </div>
        <div style="font-size: 14px;color: #666666;margin-top:15px;">
            <c:if test="${not empty map.promotionList}">
                <span style="background: #cd8cfe;color: #ffffff;display: inline-block;width: 40px;line-height:24px;text-align:center;border-radius:2px;margin-right:10px;font-size: 14px;">活动</span>${map.promotionList}
            </c:if>
            <c:if test="${map.isInvoice==1}">
                <span style="background: #cd8cfe;color: #ffffff;display: inline-block;width: 40px;line-height:24px;text-align:center;border-radius:2px;margin-right:10px;font-size: 14px;">发票</span>本店支持开具发票
            </c:if>
            <c:if test="${not empty map.couponList}">

                <span style="background-color: #FF5D73;color: white"> 满 减 </span>
                <c:forEach items="${map.couponList}" var="couponList">
                    ${couponList.name}
                </c:forEach>
            </c:if>

        </div>
    </div>
</div>
<div class="public-background public-overflow" style="margin-top:10px;">
    <div class="public-padding">
        <div class="public-overflow public-border-bottom" style="padding-bottom: 10px;padding-top:10px;">
            <div style="width:10%;margin-top:4px;" class="public-left"><img
                    src="${path}/static/taoshunda/share/images/1.png" width="26" alt=""/></div>
            <div style="width:90%;line-height: 40px;" class="public-right"> ${map.bussTel}</div>
        </div>
        <div class="public-overflow public-border-bottom" style="padding-bottom: 10px;padding-top:10px;">
            <div style="width:10%;margin-top:4px;" class="public-left"><img
                    src="${path}/static/taoshunda/share/images/3.png" width="26" alt=""/></div>
            <div style="width:90%;line-height: 40px;" class="public-right"> ${map.adress}</div>
        </div>
        <div class="public-overflow" style="padding-bottom: 10px;padding-top:10px;">
            <div style="width:10%;margin-top:4px;" class="public-left"><img
                    src="${path}/static/taoshunda/share/images/4.png" width="26" alt=""/></div>
            <div style="width:90%;line-height: 40px;" class="public-right">营业时间： ${map.startTime} - ${map.endTime}</div>
        </div>
    </div>
</div>
<div style="background: #4183ff;line-height:50px;text-align: center;display: inline-block;position: fixed;bottom: 0;width: 100%;font-size: 16px;">
    <button style="width: 100%; line-height:50px;background: #FF6D13;" id="btn"
            location="
    'http://www.taoshunda.com/setup/user.html'
    "><a
            href="http://www.taoshunda.com/setup/user.html" id="link"
            style="color: #ffffff;">点击下载淘瞬达app，淘您所爱 一瞬即达</a>
    </button>
</div>
</body>
<script>
    document.getElementById("btn").onclick = function () {
        document.getElementById("link").click();
    }
</script>
</html>